# -*- encoding:utf8 -*-

from django.db import models

# Create your models here.

class Jiemu(models.Model):
    jiemu_id=models.CharField(u'界面的编号',max_length=100,blank=True)
    order = models.IntegerField(u'节目的顺序',blank=True)
    title=models.CharField(u'标题',max_length=200,blank=True)
    content=models.TextField(u'内容',blank=True)
    zhan_list=models.TextField(u'点赞人的列表',blank=True)
    # number=models.IntegerField(u'点赞数',default=0,blank=True)
    
    def number(self):
        ls= self.zhan_list.split(',')
        return len(ls)-1
    
    